﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Objects.Definition;
namespace Objects
{
    public class Helper
    {
        public List<Book> GetDistanceBookList()
        {
            var data = Data.GetBooksData();

            var list = from i in data
                       orderby i.PublicationDate.Year
                       select i;

            return list.ToList<Book>();
        }
    }
}
